﻿using System;
using System.Diagnostics.CodeAnalysis;
using System.Windows.Forms;
using BankInvest.InstrumentEditor.Controllers;
using StructureMap;

namespace BankInvest.InstrumentEditor
{
    [ExcludeFromCodeCoverage]
    static class Program
    {
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            new SqliteInMemoryAppConfigurator().Configure();

            using (var instrumentEditorController = ObjectFactory.GetInstance<InstrumentEditorController>())
            {
                Application.Run((Form)instrumentEditorController.GetInitializedView());
            }
        }
    } 
}
